package _java8新特性;

import org.junit.Test;

import java.util.function.Consumer;

/**
 *
 *
 */
public class LN_03_FunctionInterface {


    @Test
    public void test_1() {
        Consumer<String> lenConsumer = s -> {
            String bb = s.substring(1,3);

        };
        lenConsumer.accept("hello");

    }

}
